
#import <UIKit/UIKit.h>
#include "ka-app/app-iOS.h"

using namespace ka;

static iOSApplicationImpl _global_impl;

IApplicationImpl *Application::getDefaultImpl() {
    return &_global_impl;
}

iOSApplicationImpl::~iOSApplicationImpl() {
    
}

int iOSApplicationImpl::run(int argc, char *argv[]) {
    NSAutoreleasePool *p = [[NSAutoreleasePool alloc] init];
    int r = UIApplicationMain(argc, argv, nil, @"kaDefaultAppDelegate");
    [p release];
    return r;
}